package com.yunxi.dao.sat;

import com.yunxi.core.dao.BaseMapperPlus;
import com.yunxi.model.sat.SatCustomerClue;
import com.yunxi.sat.pojo.SatCustomerClueVO;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 客户线索 Mapper 接口
 * </p>
 *
 * @author caoYong
 * @since 2019-07-10
 */
public interface SatCustomerClueMapper extends BaseMapperPlus<SatCustomerClue> {

    Integer queryGetClueSum(SatCustomerClueVO satCustomerClueVO);

    Integer querySatConfig(String userCode);

    String getUserCodeByName(String userName);

    /**
     * 通过客户编号查询姓名
     * @param satCustomerClueVO
     * @return
     */
    String getCustomerNameByNo(SatCustomerClueVO satCustomerClueVO);

    Integer todayClueCount(SatCustomerClueVO satCustomerClueVO);

    List<SatCustomerClue> queryLateClue();

    List<SatCustomerClue> queryManagerLateClue();

    void returnAreaManager(String clueId);

    void updateBatch(Collection<SatCustomerClue> satCustomerClues);

    void setTestDrivePartnerCode(String clueId,String salesConsultantNo);
}
